﻿package com.firewolf.command.simplecommand;
/**
 * 遥控器，扮演Invoker角色
 * @author Administrator
 *
 */
public class SimpleRemoteControl {
	private Command command;
	public SimpleRemoteControl(){}
	public void setCommand(Command command){//设置命令
		this.command = command;
	}
	public void buttonWasPressed(){
		command.execute();
	}
}
